﻿using System.Collections.Generic;
using SimpleOrmCFPC.Core.Query.OrderBys;

namespace SimpleOrmCFPC.Core.Query.Requests
{
    public class SQLRequest
    {
        public int? _limit;
        public int? _offset;
        public List<Ordering> _orderBys;
        public List<IWhereElement> _where;
        public List<string> _selects;
        public List<string> tableNames;

        public SQLRequest(int? limit, int? offset, List<Ordering> orderBys, List<IWhereElement> @where, List<string> tableNames, List<string> selects)
        {
            _limit = limit;
            _offset = offset;
            _orderBys = new List<Ordering>(orderBys);
            _where = new List<IWhereElement>(@where);
            this.tableNames = new List<string>(tableNames);
            _selects = new List<string>(selects);
        }
    }
}